import { request, config } from 'utils';

const { api } = config;
const { GetAnalysisModelDemestionLevel, ReportDrillDown } = api;

// 将 获取下穿维度列表
export async function getAnalysisModelDemestionLevel(data = {}) {
  // data = {
  //   FieldName: parentDimension,
  //   ModelID,
  // }
  return request(GetAnalysisModelDemestionLevel, {
    data,
    // loading: false,
  });
}

// 获取 下穿数据
export async function reportDrillDown(dto = {}) {
  // const dto = {
  //   DimensionValues,
  //   NewDimension: ChildFieldNames[0],
  //   reporterID: ID,
  //   Measure,
  //   parentDimensionValue,
  // };
  return request(ReportDrillDown, {
    data: { dto },
  });
}
